package com.spring.test;

import com.spring.bean.Student;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        Student student = context.getBean("student",Student.class);

        System.out.println(student.getName()+"准备做作业了");
        student.doHomeWork();

        context.close();

    }
}
